<?php 
defined('PHPFOX') or exit('NO DICE!'); 
?>
<div id="AddContent" class="floatLeft fullFix">
		
			<div id="" class="box">
				<h1 class="title_post_cauhoi">Gửi câu hỏi</h1>

				<div id="" class="addEditor">
				<form action="{url link='hoidap.postcauhoi'}" method="post" accept-charset="utf-8">
				
					<div id="" class="floatLeft">
						<!--<h1>Thông tin chung</h1>-->
						
						<table width="100%">
							<tr>
								<td width="100">Tiêu đề</td>
								<td>
									<input class="input_tieude_cauhoi" type="text" name="val[title]" value="{$aForms.title}" placeholder="Nhập tiêu đề vào đây...">
								</td>
							</tr>
							<tr>
								<td>Chủ đề</td>
								<td>
									<select class="select_cat_cauhoi" name="val[cat_parent]" onchange="$.ajaxCall('hoidap.listcategorychild','childcatid='+this.value, 'GET')">
										<option value="0">Chọn chủ đề câu hỏi</option>
										{foreach from=$category item=cat}
											 <option  {if $category_parent==$cat.category_id} selected="selected" {/if}  value="{$cat.category_id}">{$cat.category_name}</option>
										{/foreach}						 
									</select> 
								</td>
							</tr>
							<tr>
								<td>Danh mục</td>
								<td>
									<select class="select_cat_cauhoi" id="chide_category_id" name="val[category_id]" >
									<!--
										<option value="0">Chọn danh mục câu hỏi</option>
									-->
										{foreach from=$listcategory item=lscat}
											 <option  {if $aForms.category_id==$lscat.category_id} selected="selected" {/if}  value="{$lscat.category_id}">{$lscat.category_name}</option>
										{/foreach}						 
									</select>	
								</td>
							</tr>
						</table>
					
						
						<!--
						<p>
							<label for="">Tiêu đề</label>
							<input class="input_tieude_cauhoi" type="text" name="val[title]" value="{$aForms.title}" placeholder="Nhập tiêu đề vào đây...">
						</p>

						<p>
							<label for="">Chủ đề</label>
								<select class="select_cat_cauhoi" name="val[cat_parent]" onchange="$.ajaxCall('hoidap.listcategorychild','childcatid='+this.value, 'GET')">
									{foreach from=$category item=cat}
										 <option  {if $category_parent==$cat.category_id} selected="selected" {/if}  value="{$cat.category_id}">{$cat.category_name}</option>
									{/foreach}						 
								</select> 	
						</p>

						<p>
							<label for="">Danh mục</label>
								<select class="select_cat_cauhoi" id="chide_category_id" name="val[category_id]" >
									{foreach from=$listcategory item=lscat}
										 <option  {if $aForms.category_id==$lscat.category_id} selected="selected" {/if}  value="{$lscat.category_id}">{$lscat.category_name}</option>
									{/foreach}						 
								</select> 	
						</p>
						
						-->
<!--
						<p>
							<label for="">Mã kiểm tra</label>
							<input type="text" name="" class="captchaText" value="" placeholder="">
							<input type="text" name="" class="captcha" placeholder="">
						</p>
						-->
					</div><!-- / FLOAT LEFT-->
					<!--<div id="" class="floatRight">
						

					</div> / FLOAT RIGHT-->
					<div style="clear: both">	
					</div>
					<!--
						{editor id='text'}
					-->
					
					<textarea class="content_post_cauhoi" id="text" cols="50" rows="12" name="val[text]"></textarea><br/>
					
					<input class="button_dang_cauhoi" type="submit" name="" class="submit" value="Đăng câu hỏi">
					<input type="hidden" name="val[cauhoi_id]" value="{$aForms.cauhoi_id}">
					<div class="clear"></div>
				</form>
				</div><!-- / ADD EDITOR-->

			</div><!-- / BOX-->

		</div><!-- / CENTER CONTENT-->